package com.lianniu.web.product.service.impl;


import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lianniu.web.base.BaseResult;
import com.lianniu.web.product.dao.IProductSpecRelDao;
import com.lianniu.web.product.service.IProductSpecRelService;
@Service
public class ProductSpecRelServiceImpl implements IProductSpecRelService {
	
	private static final Logger logger = Logger.getLogger(ProductSpecRelServiceImpl.class);

	@Autowired
	IProductSpecRelDao psrDao;

	@Override
	public BaseResult selectByProductId(String productId) {
		logger.info("selectByProductId begin");
		return BaseResult.success(psrDao.selectByProductId(productId));
	}
	
	@Override
	public BaseResult selectById(String productId) {
		return BaseResult.success(psrDao.selectById(productId));
	}

}
